package com.hsnn.medstgmini.base.std.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.hsnn.medstgmini.base.dict.model.DicArea;

/**
 * @category 管理机构实体类
 * @author 韩守松
 * @date 2015年11月17日
 */
@Entity
@Table(name = "std_healthbureau")
public class StdHealthbureauLog implements Serializable{
	
	private static final long serialVersionUID = -4714332988464651851L;
	
	@Id
	@Column(name="hea_bur_id")
	private String logId;//日志id
	
	@Column(name="hea_bur_id")
	private String heaBurId;//机构ID
	
	@Column(name="hea_bur_code")
	private String heaBurCode;//机构编号

	@Column(name="hea_bur_name")
	private String heaBurName;//机构名称

	@Column(name = "bur_spel_code")
	private String burSpelCode;//机构名称拼音码
	
	@Column(name = "org_code")
	private String orgCode;//组织机构代码

	@Column(name = "hosp_address")
	private String hospAddress;//机构地址
	
	@Column(name = "hosp_phone")
	private String hospPhone;//机构电话
	
	@OneToOne
	@NotFound(action = NotFoundAction.IGNORE)
	@JoinColumn(name = "area_id", referencedColumnName = "area_id")
	private DicArea area;//所属地区	
	
	@Column(name="hea_bur_type",length=4)
	private Integer heaBurType;//机构类型0其他1中心2卫生局3卫计委4物价局	

	@Column(name="staff_num")
	private Integer staffNum;//员工数
	
	@Column(name="profile")
	private String profile;//简介
	
	@Column(name="contact_name")
	private String contactName;//联系人姓名

	@Column(name="contact_idnum")
	private String contactIdnum;//联系人身份证号
	
	@Column(name="contact_pos")
	private String contactPos;//联系人职务

	@Column(name="contact_telephone")
	private String contactTelephone;//联系人电话

	@Column(name="contact_handphone")
	private String contactHandphone;//联系人手机

	@Column(name="contact_email")
	private String contactEmail;//联系人邮箱

	@Column(name="contact_qq")
	private String contactQQ;//联系人QQ

	@Column(name="status")
	private Integer status;//状态0停用1启用
	
	@Column(name="upd_time")
	private Date updTime;//更新时间

	@Column(name="upd_user")
	private String updUser;//更新人
	
	@Column(name="detail")
	private String detail;

	@Transient
	private String userId;//用户ID
	
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getHeaBurId() {
		return heaBurId;
	}
	public void setHeaBurId(String heaBurId) {
		this.heaBurId = heaBurId;
	}
	public String getHeaBurCode() {
		return heaBurCode;
	}
	public void setHeaBurCode(String heaBurCode) {
		this.heaBurCode = heaBurCode;
	}
	public String getHeaBurName() {
		return heaBurName;
	}
	public void setHeaBurName(String heaBurName) {
		this.heaBurName = heaBurName;
	}
	public String getContactName() {
		return contactName;
	}
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
	public String getContactPos() {
		return contactPos;
	}
	public void setContactPos(String contactPos) {
		this.contactPos = contactPos;
	}
	public String getContactTelephone() {
		return contactTelephone;
	}
	public void setContactTelephone(String contactTelephone) {
		this.contactTelephone = contactTelephone;
	}
	public String getContactHandphone() {
		return contactHandphone;
	}
	public void setContactHandphone(String contactHandphone) {
		this.contactHandphone = contactHandphone;
	}
	public String getContactEmail() {
		return contactEmail;
	}
	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}
	public String getContactQQ() {
		return contactQQ;
	}
	public void setContactQQ(String contactQQ) {
		this.contactQQ = contactQQ;
	}
	public Date getUpdTime() {
		return updTime;
	}
	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	
	public DicArea getArea() {
		return area;
	}

	public void setArea(DicArea area) {
		this.area = area;
	}
	public String getBurSpelCode() {
		return burSpelCode;
	}
	public void setBurSpelCode(String burSpelCode) {
		this.burSpelCode = burSpelCode;
	}
	public String getOrgCode() {
		return orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	public String getHospAddress() {
		return hospAddress;
	}
	public void setHospAddress(String hospAddress) {
		this.hospAddress = hospAddress;
	}
	public String getHospPhone() {
		return hospPhone;
	}
	public void setHospPhone(String hospPhone) {
		this.hospPhone = hospPhone;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getStaffNum() {
		return staffNum;
	}
	public void setStaffNum(Integer staffNum) {
		this.staffNum = staffNum;
	}
	public String getProfile() {
		return profile;
	}
	public void setProfile(String profile) {
		this.profile = profile;
	}
	public String getContactIdnum() {
		return contactIdnum;
	}
	public void setContactIdnum(String contactIdnum) {
		this.contactIdnum = contactIdnum;
	}
	public Integer getHeaBurType() {
		return heaBurType;
	}
	public void setHeaBurType(Integer heaBurType) {
		this.heaBurType = heaBurType;
	}
	public String getLogId() {
		return logId;
	}
	public void setLogId(String logId) {
		this.logId = logId;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
}